package com.hqyj.fj.javaSpringBoot.modules.test.service;

import com.hqyj.fj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.SearchBean;
import com.hqyj.fj.javaSpringBoot.modules.test.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentService {

    Result<Student> editStudent(Student student);

    Result<Object> deleteStudentById(int id);

    Student getStudentById(int id);

    List<Student> getStudents();

    Student getStudentByNameAndEmail(String name, String email);

    public Page<Student> getStudentBySearchBean(SearchBean searchBean);

    Student getStudentByIdForSql(   int id);

   Result<Object> insertStudents(List<Student> students);
 }